﻿/* DataClass
#-------------------------------------------------------------------------------
# Name:        SettingsPropertyBox - PropertyBox to used by VisionAlgoViewItem for the Settings form
#
# Contains:    A table of Controls for the SettingsPanel
#              
#
# Requires:    Visual Studio 2010 and up.
#
# Author:      Roy Scheefhals
#
# Created:     01-04-2012
#-------------------------------------------------------------------------------
*/


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LibraryCS
{
    public class SettingsPropertyBox
    {
        //List of list of controls.. 
        // the full list of lists contains the WHOLE panel.
        // 1 list of controls contains 1 line of settings ( max 4 items ) 
        public List<List<Control>> SettingsPanel;

        public SettingsPropertyBox()
        {
            SettingsPanel = new List<List<Control>>();
        }

        
        public void AddLine(Control control1,Control control2,Control control3, Control control4){
            List<Control> Newline = new List<Control>();
            
            if(control1 != null)
                Newline.Add(control1);

            if(control2 != null)
                Newline.Add(control2);

            if(control3 != null)
                Newline.Add(control3);

            if(control4 != null)
                Newline.Add(control4);

            SettingsPanel.Add(Newline);
        }
    }
}
